#include <bits/stdc++.h>
using namespace std;

struct Student {
    int id;
    int score;
};

bool compareStudents(const Student& a, const Student& b) {
    if (a.score != b.score) {
        return a.score > b.score;  // 分数从高到低
    }
    return a.id < b.id;  // 分数相同时，学号从小到大
}

int main() {
    int n;
    cin >> n;

    vector<Student> students(n);

    for (int i = 0; i < n; i++) {
        students[i].id = i + 1;
        cin >> students[i].score;
    }

    sort(students.begin(), students.end(), compareStudents);

    for (const auto& student : students) {
        cout << student.id <<endl;
    }
    cout << endl;

    return 0;
}
